package com.angel.service.ServiceImpl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.angel.bean.LearnExp;
import com.angel.mapper.LearnExpDao;
import com.angel.service.LearnExpService;

@Service
public class LearnExpServiceImpl implements LearnExpService{

    @Resource
    private LearnExpDao learnExpDao;

    @Override
    public int insert(LearnExp learnExp){
        return learnExpDao.insert(learnExp);
    }

    @Override
    public int insertSelective(LearnExp learnExp){
        return learnExpDao.insertSelective(learnExp);
    }

    @Override
    public int insertList(List<LearnExp> learnExps){
        return learnExpDao.insertList(learnExps);
    }

    @Override
    public int update(LearnExp learnExp){
        return learnExpDao.update(learnExp);
    }

    @Override
    public LearnExp findon(LearnExp learnExp){
        List<LearnExp> list=this.findAll(learnExp);
        if (list != null && list.size() > 0) {
            return list.get(0);
        }
        return null;
    }

    @Override
    public List<LearnExp> findAll(LearnExp learnExp) {
        return learnExpDao.findAll(learnExp);
    }

    @Override
    public int deletId(LearnExp learnExp) {
        return learnExpDao.deletId(learnExp);
    }

    @Override
    public List<LearnExp> findAllByuid(LearnExp learnExp) {
        return learnExpDao.findAllByuid(learnExp);
    }
}
